package com.coldchain.hz.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 冷链货主发货地址
 * </p>
 *
 * @author huangzm
 * @since 2018-08-29
 */
@TableName("l_received_addr")
public class ReceivedAddr implements Serializable{

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 冷链货主账户表id
     */
    @TableField("companyId")
	private String companyId;
    /**
     * 1、取货地址 2、收货地址
     */
	private Integer type;
    /**
     * 纬度
     */
	private double latitude;
    /**
     * 经度
     */
	@TableField("longitude")
	private double longitude;
    /**
     * 收货人名称
     */
	private String name;

	/**
	 * 紧急联系人
	 */
	@TableField("urgentName")
	private String urgentName;
    /**
     * 紧急联系人电话
     */
	private String urgentphone;
    /**
     * 收货人联系电话
     */
	private String phone;
    /**
     * 详细地址
     */
	private String address;
    /**
     * 是否默认 -1不是默认 0是默认
     */
	private Integer isdefault;
    /**
     * 城市代码
     */
	private String adecode;

    /**
     * 创建时间
     */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@TableField("createTime")
	private Date createTime;
	/**
	 * 定位地址
	 */
	private String location;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrgentphone() {
		return urgentphone;
	}

	public void setUrgentphone(String urgentphone) {
		this.urgentphone = urgentphone;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	public String getAdecode() {
		return adecode;
	}

	public void setAdecode(String adecode) {
		this.adecode = adecode;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getUrgentName() {
		return urgentName;
	}

	public void setUrgentName(String urgentName) {
		this.urgentName = urgentName;
	}
}
